home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1097 / AMOSLIST / text0111.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.2 KB  |  55 lines

  1. On 08-Oct-97, Matt Ward wrote:
  2. >Hi everyone, still there?
  3.  
  4. Hi Matt
  5.  
  6. >In Amospro how do you enter arguments for something you want to
  7. >execute?
  8. >ie
  9. >CLI:    viewtek df0:mypicture.iff
  10. >AMP:    Exec "viewtek"   ?????????
  11.  
  12. I had the same problem a few months ago. It seems you are better off
  13. using the full path for executing. Like :
  14.  
  15.   Exec "c:ViewTek Work:pics/test.iff"
  16.  
  17. >I`ve tried Commandline$, adding text in the quotes, reading the manual
  18. >(no help!). Any ideas??
  19.  
  20. '
  21. ' TEST STRING
  22. '
  23. A$="c:viewtek dh0:pics/test.iff"
  24. '
  25. ' Search for space 
  26. '
  27. For POS=0 To Len(A$)
  28.     If Mid$(A$,POS,1)=Chr$(32) Then Exit 
  29. Next POS
  30. '
  31. ' Sort out command line  
  32. '
  33. COMMAND$=Left$(A$,POS-1)
  34. PAR$=Mid$(A$,POS+1,Len(A$)-POS)
  35. '
  36. ' Print Results
  37. '
  38. Print "Command: ";COMMAND$
  39. Print "Parameter: ";PAR$
  40.  
  41. >Keep Amosing!!
  42.  
  43. I will :)
  44.  
  45. -- 
  46.  ÷    _       ____ ÷ ____`------------------------------------------°
  47.      /.\  ÷  / __/  / __,\      *http://www.talk-101.com/users/asp*
  48.   ,_/ ¡_\_ _/__ \_ /  ___/  O°····································°O
  49.  ,_____/  Y_      Y_  ¡  ·  o   #Monty The Wolf - OUT VERY SOON#     o
  50.   |   ¡   [ ] |   [ ] | -÷- Oo.....................................O
  51.   :   :   *DESIGN*  :   :  ·
  52.  
  53.  
  54.  
  55.